package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.model.User;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/17 17:05
 * @description:
 */
public interface UserService {

  ServerResponse register(User user);

  ServerResponse<Object> login(String username, String password);

  ServerResponse echoInfo(String username);

  ServerResponse<User> updateInfo(User user);

  ServerResponse<User> forgetPassword(String username);

  User findUserByUsername(String username);

  ServerResponse amendPassword(String password, String uuid);

  ServerResponse findUUID(String username,String uuid);
}
